import { GET, POST } from '../utils/methods'

// 删除全部轮播图数据
export const removeAllBannerApi = () => GET('banner/removeAll')

// 删除单条数据
export const removeBannerApi = (bannerid: string) => GET('banner/delete', { bannerid })

// 查看轮播图数据
export const bannerListApi = () => GET('banner/list')

// 访问状态更新
export const updateFlagApi = (data: any) => POST('banner/updateFlag', data)

// 插入轮播图数据
export const addBannerApi = (data: any) => POST('banner/add', data)